<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>为极科技官网后台管理登录</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/images/index/logo.ico">
    <link rel="stylesheet" href="/sources/dist/css/bootstrap.css">
    <link rel="stylesheet" href="/sources/dist/css/admin_login.css">
</head>
<body>
<div class="bg"></div>
<div class="container-fluid">
    <div class="row">
        <div class="col-xs-12 col-lg-4 col-sm-4 col-md-8 login_panel col-sm-offset-4 " style=" ">
            <div class="title"><span class="glyphicon glyphicon-user" style="color: #59c1ae;"></span>&nbsp;&nbsp;<span>后台管理登录</span>
            </div>
            <form class="form-horizontal" method="post" action="/submitLogin">
                <div class="form-group">
                    <label for="inputUsername3" class="col-sm-2 control-label">用 户 名：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" value="${username}" id="inputUsername3" name="username"
                               placeholder="用 户 名">
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputPassword3" class="col-sm-2 control-label">密 码：</label>
                    <div class="col-sm-10">
                        <input type="password" name="password" class="form-control" id="inputPassword3"
                               placeholder="密 码">
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputPassword3" class="col-sm-2 control-label">验 证 码:</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="ucode" style="width: 20%;float: left;">
                        <div style="float: left;">
                            <img src="/authcode" alt="" class="code"><span
                                style="font-size: 12px;vertical-align:bottom;">看不清，点击图片换一张</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10" style="margin-top: 15px;">
                        <button type="submit" class="btn btn-default">登 录</button>
                    </div>

                </div>
                <div style="text-align: center;"><span
                        style="color: red;display: inline-block;font-size: 14px;margin-top: 25px;line-height: 28px;"
                        class="error_span" class="text-center">${error}</span></div>
            </form>
        </div>
    </div>
</div>


<script src="/sources/dist/js/jquery.min.js"></script>
<script src="/sources/dist/js/bootstrap.min.js"></script>
<script src="/sources/dist/js/jquery.particleground.min.js"></script>
<script>
    $(document).ready(function () {
        $('.bg').particleground({
            dotColor: '#64e1ce',
            lineColor: '#6aedda',
            particleRadius: 5,
            lineWidth: 0.5,
            proximity: 80
        });

        $('.code').click(function () {
            var time = new Date();
            $(".code").attr("src", "/authcode?time=" + time);
        });

        $('input').focus(function () {
            $('.error_span').hide();
        });
    });
</script>
</body>
</html>